//Memory thread
#pragma once
#include "Memory/Memory.h"
#include "Bus/ChipBus.h"

namespace sqlite3x { class connection; }

class ExpansionBus : public boost::noncopyable
{
public:
	ExpansionBus(ChipBus& recordQueue, sqlite3x::connection& connection);
	~ExpansionBus();

	void Run();

private:
	void OnSave(MemoryNotification const& notification);
	void OnLoad(MemoryNotification const& notification);

private:
	ChipBus& m_recordQueue;
 	Memory m_memory;
};